package com.syl.starter.itools.framework.beans;

import com.syl.starter.itools.base.constants.BaseConstant;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 验证结果类
 *
 * @author syl
 * @create 2018-03-17 21:51
 **/
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
public class VerifyFailResult {
    private String field;
    private String message;

    public VerifyFailResult(String field, String message) {
        this.field = field;
        this.message = message;
    }

    public String fullMessage(){
        return this.field  + BaseConstant.BLANK_STRING + message;
    }

}
